<template>
  <el-container>
    <el-header>Joydio后台管理系统</el-header>
    <el-container>
      <el-aside width="13vw">
        <el-menu
          :default-active="$route.path"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          :router="true"
        >
          <el-menu-item index="/home">
            <i class="el-icon-menu"></i>
            <span slot="title">首页</span>
          </el-menu-item>
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>视频管理</span>
            </template>
            <el-menu-item-group
              ><el-menu-item index="/home/video-management/review"
                >视频内容审核</el-menu-item
              >

              <el-menu-item index="/home/video-management/hot"
                >热点推荐</el-menu-item
              ><el-menu-item index="/home/video-management/category"
                >分类管理</el-menu-item
              >
              <el-menu-item index="/home/video-management/upload"
                >视频上传</el-menu-item
              >
              <el-menu-item index="/home/video-management/edit"
                >视频删改</el-menu-item
              >
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-menu"></i>
              <span slot="title">用户管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="2-1">用户权限管理</el-menu-item>
              <el-menu-item index="2-2">用户资料修改</el-menu-item>
              <el-menu-item index="2-3">视频上传</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-menu"></i>
              <span slot="title">评论管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="3-1">评论删改</el-menu-item>
              <el-menu-item index="3-2">评论回收站</el-menu-item>
            </el-menu-item-group> </el-submenu
          ><el-menu-item index="4">
            <i class="el-icon-menu"></i>
            <span slot="title">管理员管理</span> </el-menu-item
          ><el-submenu index="5">
            <template slot="title">
              <i class="el-icon-menu"></i>
              <span slot="title">统计分析</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="5-1">视频播放统计</el-menu-item>
              <el-menu-item index="5-2">受众分析</el-menu-item>
              <el-menu-item index="5-3">活跃度分析</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu></el-aside
      >
      <el-main>
        <!-- <el-breadcrumb separator-class="el-icon-arrow-right">
          <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
        </el-breadcrumb> -->
        <router-view class="content"></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>
<style lang="less" scoped>
.content {
  background: #fff;
  border-radius: 10px;
  padding-bottom: 20px;
}
.el-header {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  height: 7vh !important;
  line-height: 7vh;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  height: 93vh;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  height: 93vh;
  overflow-y: auto;
}

.el-menu-item-group {
  background: #888;
  overflow-x: hidden;
  .el-menu-item {
    background: #888 !important;
  }
}
</style>
